package com.locationhistory.utils;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class CommonUtils {
	
	/**
	 * check content is black. 
	 * 
	 * @param content
	 * @return
	 */
	public static boolean isBlank(String content) {
		if (content == null || content.equalsIgnoreCase("")) {
			return true;
		} // 
		
		return false;
	} // End isBlack
	
	/**
	 * convert from date to String
	 * 
	 * @param date
	 * @return
	 */
	public static String convertFromDateToString(Date date, String pattern) {
		DateFormat dateFormat = new SimpleDateFormat(pattern);
		
		return dateFormat.format(date);
	} // end convertFromDateToString(Date date)
}
